#ifndef __CONSTANTS_H__
#define __CONSTANTS_H__

#include <limits.h>

#include "board.h"

#define TRUE 1
#define FALSE 0

#define GRID_ROWS 4
#define GRID_COLUMNS 4

#define NUM_COMPUTER_CHOICES 2
extern const int COMPUTER_CHOICES[NUM_COMPUTER_CHOICES];
extern const int WEIGHTS[NUM_COMPUTER_CHOICES];

/*
 *   0
 * 1 D 2
 *   3
 */
extern const int DIRECTIONS[4][2];

extern void (*direction_func[4]) (grid * g);

#define LOSE (-1000)
//#define LOSE (INT_MIN / 4 + 100)
#define GOOD (INT_MAX / 4 - 100)

#endif
